package com.xbell.app.sys.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
@RequestMapping(value="home")
public class HomeController  implements ApplicationContextAware{
	
	//@Value("${prod.tech}")
	//String tech;
	
	ApplicationContext ctx = null;
	
	Logger logger = LoggerFactory.getLogger(getClass());
	
	//@Autowired
	HomeBController b;
	
	@Autowired
	public void setB(HomeBController x) {
		this.b = x;	
	}
	
	//@Autowired
	//private LoadBalancerClient loadBalancerClient;
	
	@Autowired
    private RestTemplate restTemplate;

	@Override
	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
		// TODO Auto-generated method stub
		
	}
    
    //@Autowired
    //public HomeController(RestTemplate restTemplate) {this.restTemplate = restTemplate;}
	
	
	

}
